<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
require_once dirname(__FILE__) . '/../vendor/chrisboulton/php-resque/lib/Resque.php';
require_once dirname(__FILE__) . '/Myjob.php';
include dirname(__FILE__) . '/../web/config.php';
/**
 * Description of Equeue
 *
 * 入列操作类
 */
class Equeue {
    //put your code here
    public static function enterq($args) {
        global $glob_config;
        Resque::setBackend($glob_config['redis']['host'].':'.$glob_config['redis']['port']);
        $jobId = Resque::enqueue('default', Myjob::class, $args, true);
        return $jobId;
    }
}
